'use strict';
exports = module.exports = function ($scope, $rootScope, $timeout, $alert, $state, $uibModal, yxtable14, $API, throttleSubmit, $rule) {
    $scope.Rule = $rule;
    $scope.frm = {
        "lotteryDate1": '',
        "lotteryDate2": '',
        "lotteryDate3": '',
        "lotteryDate4": ''
    };
    $scope.submitFun = throttleSubmit(function(){
        $scope.From.submitted = true;
        if( $scope.From.$invalid ) {
            $alert.error('请检查提交的信息')
            return false;
        }
        var param = {};
        return param
    },function(enable, param){
        console.log('提交代码', param)
        $timeout(function(){
            enable()
        },3e3)
    });
    $scope.cancelFun = function(){
        $alert.confirm("是否取消编辑？", function(close){
            // $go('app.make.maketable1');
            close();
        })
    };
}